var tableData = {
	url : ctp + "/projectController/projectSearch.shtml",
	propertys : [ "NAME", "CONTRACTOR", "ADDR" ,"WORKTIME","HT"],
	hrefs : [ [ "function=projectUpdate", "recId=REC_ID", "修改", null ],[ "function=projectDelete", "recId=REC_ID", "删除", null ] ],
	hidden : [ "projectName=NAME"],
	checkBox:["REC_ID",true],
	startLoad : function() {
		getListData(this);
	}
};


function searchData(curr) {
	setTagAndValue("form1", "curr", curr);
	tableData.startLoad();
}
$(document).ready(function() {
	//页面中下拉框的渲染
	$('select').SumoSelect({
	placeholder: '请选择',
    csvDispCount: 4,
    captionFormat: '{0} Selected',
    forceCustomRendering: false,
    outputAsCSV : false,
    okCancelInMulti: false, 
    triggerChangeCombined : true
	});
	//页面加载时，加载列表
	searchData();

});


function projectAdd(){
	var recIds = getCheckIds();
	var projectNames = getCheckIds(null,"projectName");
	parent.addProjects(recIds,projectNames);
	closeWindow();
}


//当前弹窗索引
var _index = parent.layui.layer.getFrameIndex(window.name);

//关闭当前弹窗
function closeWindow(){
	parent.layui.layer.close(_index);
}




















